<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/WEB-INF/views/commons/taglib.jsp"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<jsp:include page="/WEB-INF/views/commons/lib.jsp" />	
<script type="text/javascript" src="${ctxStatic }/module/content/form.js"></script>
</head>
<body>
	<div class="widget-box">
		<div class="widget-header header-color-blue">
			<span>内容详情</span>
			<button class="btn btn-primary btn-sm btn-save pull-right"><i class='icon-save bigger-150'></i>保存</button>
		</div>
		<div class="widget-body panel-body">
			<form:form id="inputForm" modelAttribute="content" method="post"
				class="form-horizontal">
				<form:hidden path="id" />


				<div class="form-group">
					<label class="col-sm-2 control-label">归属栏目:</label>
					<div class="col-sm-10">
						<sys:treecombo id="subject" name="subject.id"
							value="${content.subject.id}" labelName="subject.name" 
							labelValue="${content.subject.name}" title="请选择归属栏目"
							url="${ctx }/subject/subjectTreeData" cssClass="required"  disabled="disabled"/>
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">标题:</label>
					<div class="col-sm-10">
						<form:input path="title" htmlEscape="false" maxlength="50"
							class="form-control required" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">内容:</label>
					<div class="col-sm-10">
						<form:input path="content" htmlEscape="false" maxlength="500"
							class="form-control required" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">摘要:</label>
					<div class="col-sm-10">
						<form:input path="summary" htmlEscape="false" maxlength="255"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">图片:</label>
					<div class="col-sm-10">
						<form:input path="summary_img" htmlEscape="false"
							class="form-control" />
					</div>
				</div>
				<div class="form-group">
					<label class="col-sm-2 control-label">状态:</label>
					<div class="col-sm-10">
						<%-- <form:radiobuttons path="is_audit" items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/> --%>
						<label class="radio-inline"> 
							<input type="radio" name="status" value="1" checked="checked" class="ace"><span class="lbl"> 是</span>
						</label> 
						<label class="radio-inline"> 
							<input type="radio" name="status" value="0" class="ace"><span class="lbl"> 否</span>
						</label>
					</div>
				</div>
			</form:form>
		</div>

	</div>

</body>
</html>
